package com.example.controller;

import com.example.domain.po.LeoTest1;
import com.example.service.LeoTest1Service;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class DemoController {

    private final LeoTest1Service leoTest1Service;


    @GetMapping("dev")
    public LeoTest1 dev() {
        return leoTest1Service.findDevData();
    }

    @GetMapping("test")
    public LeoTest1 test() {
        return leoTest1Service.findTestData();
    }

    @GetMapping("holo")
    public LeoTest1 holo() {
        return leoTest1Service.findHoloData();
    }

}
